import employees from '../utils/employees'
import moment from 'moment'
import store from '@/store'
export const turnHireType = function(value) {
  const obj = employees.hireType.find(v => {
    return v.id == value
  })
  return obj ? obj.value : ''
}
export const timeFormat = function(value) {
  return moment(value).format('YYYY-MM-DD')
}
export const btnper = function(value) {
  return !store.getters.userInfo.roles.points.includes(value)
}
